package com.zzy.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

//如果不指定表的名字 ，会根据 Classic 自动找表
@TableName(value = "t_classic")
public class Classic implements Serializable {
    //主键
    @TableId(value = "id")
    private Long id;

    private String author;
    //字段名字和实体类名字 的设置
    @TableField(value = "title")
    private String title;
    private String content;
    private Integer num;
    //字段名字和实体类名字 的设置
    @TableField(value = "create_date")
    private Date createDate;

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}